


import bpy
from bpy.types import (
    Panel,
)
from bpy.app.translations import contexts as i18n_contexts








class C_PhysicButtonsPanel:
	bl_space_type = 'PROPERTIES'
	bl_region_type = 'WINDOW'
	bl_context = "physics"

	@classmethod
	def poll(cls, context):
		return (context.object) and context.engine in cls.COMPAT_ENGINES



class C_引擎物体物理_PT_add(C_PhysicButtonsPanel, Panel):
	bl_label = "PhysX"
	bl_options = {'HIDE_HEADER'}
	COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH', 'mbt_game_renderer'}
	
	def draw(self, context):
		layout = self.layout
		obj = context.object
		

		row = layout.row(align=True)
		row.alignment = 'LEFT'
		row.label(text="PhysX:")
		
		flow = layout.grid_flow(row_major=True, columns=0, even_columns=True, even_rows=False, align=True)
		col = flow.column()

		if obj.type == 'MESH':
			pass

		row = layout.row(align=True)
		row.alignment = 'LEFT'
		row.label(text="FleX:")














classes = (
	C_引擎物体物理_PT_add,
)


def register():
	for c in classes:
		bpy.utils.register_class(c)
		
def unregister():
	for c in classes:
		bpy.utils.unregister_class(c)

